import pygame,  os,  sys,  time,  random
from pygame.locals import *

class Score(pygame.sprite.Sprite):
    
    def __init__(self,  pos):
        pygame.sprite.Sprite.__init__(self)
        self.text = ''
        self.font = pygame.font.Font(None,  48)
        self.image = self.font.render(self.text, 1,  (0, 0, 0))
        self.rect = self.image.get_rect()
        self.pos = pos
        self.rect.center = pos
    
    def update(self):
        self.image = self.font.render(self.text, 1,  (0, 0, 0))
        self.rect = self.image.get_rect()
        self.rect.center = self.pos
